<?php
namespace app\model;

use think\Model;

class Base extends Model
{
    //获取详细信息
    function get_info(array $where,string $field='*'){
        return $this->where($where)->field($field)->find();
    }
    //分页列表
    function get_list(array $where,array $order,string $limit,string $field='*'){
        return $this->where($where)->field($field)->order($order)->limit($limit);
    }
}